package py.com.alfa.escriba.persistence.dto;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class UserDTO {
    private Long id;
    private String userName;  
    private String name; 
    private String password;    
    private boolean activo;
    private boolean titular;
    private Long    idEscribano;    
    private String  eMail; 
    private Long    trn;
    
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public Long getIdEscribano() {
		return idEscribano;
	}
	public void setIdEscribano(Long idEscribano) {
		this.idEscribano = idEscribano;
	}
	public String geteMail() {
		return eMail;
	}
	public void seteMail(String eMail) {
		this.eMail = eMail;
	}
	public Long getTrn() {
		return trn;
	}
	public void setTrn(Long trn) {
		this.trn = trn;
	}
	
	
	public boolean isTitular() {
		return titular;
	}
	public void setTitular(boolean titular) {
		this.titular = titular;
	}
	public boolean isActivo() {
		return activo;
	}
	public void setActivo(boolean activo) {
		this.activo = activo;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("UserDTO [id=");
		builder.append(id);
		builder.append(", userName=");
		builder.append(userName);
		builder.append(", name=");
		builder.append(name);
		builder.append(", password=");
		builder.append(password);
		builder.append(", client=");		
		builder.append(", activo=");
		builder.append(activo);
		builder.append(", idEscribano=");
		builder.append(idEscribano);
		builder.append(", eMail=");
		builder.append(eMail);
		builder.append(", trn=");
		builder.append(trn);
		builder.append("]");
		return builder.toString();
	}
		    
}
